/*
 * Copyright (c) 2018-2999 湖南洛云网络科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.bean.enums;

/**
 * 店铺钱包金额类型
 * 金额类型 0 未结算金额 1可提现金额  2冻结金额
 */
/**
 * @author Yami
 */
public enum ShopWalletAmountType {

    /**
     * 未结算金额
     */
    UNSETTLED_AMOUNT(0,"未结算金额"),

    /**
     * 可提现金额
     */
    SETTLED_AMOUNT(1, "可提现金额"),

    /**
     * 冻结金额
     */
    FREEZE_AMOUNT(2, "冻结金额"),

    /**
     * 总结算金额
     */
    TOTAL_SETTLED_AMOUNT(3, "总结算金额"),

    ;

    private Integer num;

    private String shopWalletAmountType;

    public Integer value() {
        return num;
    }

    public String getShopWalletAmountType() {
        return shopWalletAmountType;
    }

    ShopWalletAmountType(Integer num,String shopWalletAmountType){
        this.num = num;
        this.shopWalletAmountType = shopWalletAmountType;
    }

    public static ShopWalletAmountType instance(Integer value) {
        ShopWalletAmountType[] enums = values();
        for (ShopWalletAmountType statusEnum : enums) {
            if (statusEnum.value().equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }
}
